/*
 * @Author: HeAo
 * @Date: 2021-09-26 11:09:35
 * @LastEditTime: 2021-09-26 11:13:11
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day02\8-Object静态方法.js
 * 别乱动！
 */
let obj1 = {
  name: 'zhangsan',
  age: 12,
  gender: 'male'
}

let keys = Object.keys(obj1)
let values = Object.values(obj1)
let entries = Object.entries(obj1)

// console.log(keys, values, entries);

entries.forEach((item, index) => {
  console.log(item[0], item[1]);
})